package mysgoog.pattern.endgamePattern;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import mysgoog.gtp.Color;
import mysgoog.pattern.Storage.VertexValue;

public class EndGamePatternTest {
	static Color O = Color.WHITE;
	static Color X = Color.BLACK;
	static Color U = Color.EMPTY;
	static Color[] board = {
			U, U, U, U, U, U, U, U, U, U, U, U, U,
			U, U, O, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, O, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U 
	};
	public static void main(String[] arg) throws IOException, ClassNotFoundException{
		System.out.println("Loading");
		EndGamePatternMatcher matcher = new EndGamePatternMatcher();
		List<VertexValue> moves = new ArrayList<VertexValue>();
		System.out.println("Matching");
		//matcher.getMatch(4, 4, matcher.patternMap.get(4 * 13 + 4), board, O, moves);
		matcher.getMatch(board, O, moves);
		System.out.println("abc");
		for (VertexValue i:moves){
			System.out.println(i.vertex.x + " " + i.vertex.y + " " + i.value);
		}
	}
}
 